package com.dong.service.impl;

import com.dong.dao.Video2Mapper;
import com.dong.entitys.Video2;
import com.dong.service.Video2Service;
import com.dong.tools.DBTools;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class Video2ServiceImpl implements Video2Service {
    @Override
    public List<Video2> selectAllVideoManager() {
        SqlSession session = DBTools.getSession();
        Video2Mapper mapper = session.getMapper(Video2Mapper.class);
        List<Video2> video2s = mapper.selectAllVideoManager();
        session.commit();
        session.close();
        return video2s;
    }
}
